<?php
for ($i = 1; $i <= 1000; $i++) {
    $taskName = "任务".$i;
    $taskContent = "任务内容".$i;

    $dsn = "sqlsrv:Server=localhost;Database=Task";
    $db = new PDO($dsn, "sa", "123456");

    $sql = "insert into Task (TaskName, TaskContent) values ('{$taskName}','{$taskContent}')";
    $result = $db->exec($sql);
}
